package com.ht.pms.core.feign;

import com.ht.pms.core.dto.Result;
import com.ht.pms.core.dto.user.UcOrg;
import com.ht.pms.core.dto.user.UcUser;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("ussp-uc-app")
public interface UcFeign {

    @GetMapping(value = "/user/getUserListByTime")
    public List<UcUser> getUserListByTime(@RequestParam("startTime") String startTime,@RequestParam("endTime")  String endTime);

    @GetMapping(value = "/org/getOrgListByTime")
    public List<UcOrg> getOrgListByTime(@RequestParam("startTime")  String startTime,@RequestParam("endTime") String endTime);

    @PostMapping(value = "/userFeignServer/getAllDDUser")
    public String getAllDDUser();
}
